import {
  createSlice
} from '@reduxjs/toolkit';

const initData = {};

const userSlice = createSlice({
  name: "user",
  initialState: initData,
  reducers: {
    saveLogin(state, action) {
      state.loginInfo = action.payload;
    },
    saveUserInfo(state, action) {
      state.userInfo = action.payload;
    },
  }
})
export const {
  saveLogin,
  saveUserInfo
} = userSlice.actions;

export default userSlice.reducer;